import { createRouter ,createWebHashHistory } from "vue-router";
const routes = [
    {
        path:'/',
        name:'main',
        component:()=>import('@/views/Main.vue'),
        redirect:'/nPage',
        children:[
            {
                path: 'home',
                name: 'home',
                component: () => import('@/views/Home.vue'),
            },
            {
                path: 'mall',
                name: 'mall',
                component: () => import('@/views/Mall.vue'),
            },
            {
                path: 'user',
                name: 'user',
                component: () => import('@/views/User.vue'),
            },
            {
                path: 'nPage',
                name: 'nPage',
                component: () => import('@/views/Navigation.vue'),
            },
            {
                path: 'nSetting',
                name: 'nSetting',
                component: () => import('@/views/NSetting.vue'),
            },
        ]
    },
];
const router = createRouter({
    history:createWebHashHistory(),
    routes,
});
export default router;